<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
    <style></style>
  </head>
  <body>
    <div id="app">
      <!-- 
        style的数组写法,可以书写多个对象类型的样式
       -->
      <div :style="[style1,style3,style4]">style1</div>

      <div :style="[style2,style3]">test</div>
    </div>
    <script>
      /* 
        
      */
      const vm = new Vue({
        el: "#app",
        data() {
          return {
            style1: { color: "pink" },
            style2: { fontSize: "80px" },
            style3: { fontStyle: "italic" },
            style4: { textShadow: "2px 2px 3px green" },
          };
        },
      });
    </script>
  </body>
</html>
